package cn.foolishbird.hamal.frame.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.foolishbird.hamal.frame.base.CustomBaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;
import lombok.experimental.Accessors;

/**
 * <p>
    * 
    * </p>
 *
 * @author Eric
 * @since 2020-10-13
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user")
public class SysUser extends CustomBaseEntity {

       private static final long serialVersionUID = 1L;


    /**
     * 账号
     */
    @TableField("username")
    private String username;

    /**
     * 密码
     */
    @TableField("pwd")
    private String pwd;

    /**
     * 盐
     */
    @TableField("salt")
    private String salt;

    /**
     * 性别
     */
    @TableField("gender")
    private Integer gender;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 状态
     */
    @TableField("user_state")
    private Integer userState;

    @Tolerate
    public SysUser (){
    }


}
